STEP 17: All we have to do now is add however many points our sprites are worth to the score!

  • In , drag Get Image Name indented inside your click(sprite) function.
  • Change the variable to the left of the = sign from my_var to image.
  • This is the image name of the sprite we clicked on. We'll use this in our dictionary as our key in the next activity.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)